package com.pl.service.impl;

import com.pl.bean.SubSystemUserBean;
import com.pl.dao.SubSystemUserBeanDao;
import com.pl.service.SubSystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName: ClientInfoServiceImpl
 * @Description: TODO
 * @author: 名字
 * @date: 2020/4/24  13:11
 */
@Service
public class SubSystemUserServiceImpl implements SubSystemUserService {

    @Autowired
    private SubSystemUserBeanDao subSystemUserBeanDao;


    @Transactional
    @Override
    public void addSubSystemUserBean(SubSystemUserBean subSystemUserBean) {
        subSystemUserBeanDao.addSubSystemUserBean(subSystemUserBean);
    }

    @Transactional
    @Override
    public void updateSubSystemUserBean(SubSystemUserBean subSystemUserBean) {
        subSystemUserBeanDao.updateSubSystemUserBean(subSystemUserBean);
    }

    @Override
    public List<SubSystemUserBean> getSubSystemUserBean() {
        List<SubSystemUserBean> list =subSystemUserBeanDao.getSubSystemUserBean();
        return list;
    }

    @Transactional
    @Override
    public void deleteSubSystemUserBean(Integer id) {
        subSystemUserBeanDao.deleteSubSystemUserBean(id);
    }

    @Override
    public SubSystemUserBean getsubSystemById(Integer id) {


        return subSystemUserBeanDao.getSubSystemUserBeanById(id);
    }
}
